import request from "@/utils/request";

// 设备预警概况（pie） 错误码 200500
export function getDetailpie(params) {
  return request({
    url: "/device/abnormal/situation/list",
    method: "get",
    params,
  });
}

// 能耗异常详情表单（list） 错误码 200501
export function getList(params) {
  return request({
    url: "/device/abnormal/detail/list",
    method: "get",
    params,
  });
}

// 用能单位预警top(bar) 错误码 200502
export function getDepttop(params) {
  return request({
    url: "/device/abnormal/dept/list",
    method: "get",
    params,
  });
}

// 能耗终端预警top(bar1) 错误码 200503
export function getMonitoringtop(params) {
  return request({
    url: "/device/abnormal/monitoring/list",
    method: "get",
    params,
  });
}
